<template>
  <div class="box">
    <el-form :model="form" ref="form" label-width="100px" class="form">
        <h3 class="title">若依后台管理系统</h3>
        <el-form-item prop="userName">
            <el-input v-model="form.userName" type="text" autocomplete="off" placeholder="账号"></el-input>
        </el-form-item>
        <el-form-item prop="password">
            <el-input v-model="form.password" autocomplete="off" placeholder="密码"></el-input>
        </el-form-item>
        <el-form-item prop="code">
            <el-input v-model="form.code" autocomplete="off" placeholder="验证码"  style="width: 63%"></el-input>
             <div class="login-code">
          <img class="login-code-img"/>
        </div>
        </el-form-item>
        <el-form-item>
            <el-checkbox v-model="form.checked">记住密码</el-checkbox>
        </el-form-item>
        <el-form-item>
            <el-button type="primary">登录</el-button>
        </el-form-item>
    </el-form> 
  </div>
</template>

<script>
export default {
    data(){
        return{
            form:{
                userName:"",
                password:"",
                code:"",
                checked:false
            }
        }
    }

}
</script>

<style lang="less" scoped>
@import "../less/index.less";
    .box{
        width: 100vw;
        height: 100vh;
        background: linear-gradient(@primary, @primary2);
        position: relative;
    }
    .title {
        margin: 0px auto 30px auto;
        text-align: center;
        color: #707070;
    }
    .form{
        border-radius: 6px;
        background: #ffffff;
        width: 400px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 25px 25px 5px 25px;
        .el-input {
            height: 38px;
            input {
                height: 38px;
            }
        }
    }

</style>